<?php

#################################################
#################################################
#												#
#		SynapseBB - Pre-Alpha					#
#		Programming - Kimmy Andersson			#
#		Copyright �Kimmy Andersson				#
#												#
#################################################
#################################################
#												#
#		SBB Standard Theme - Lo-FI				#
#												#
#################################################

#Directory Protection.
#This is where it checks if the script is on Style Load phase.
if(!$sbb->onStyle) { 
	
	die('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
	<html>
	<head>
	<title>403 Forbidden</title>
	</head>
	<body>
	<h1>Forbidden</h1>
	<p>You don\'t have permission to access this document.</p>
	<hr>
	</body>
	</html>');
	
}

?>
<html>
	
	<head>
		
		<title>Synapse Bulletin Board</title>
		<link href=<?php echo("./style/" . $sbb_fconfig->theme . "/style/style.css")?> rel="stylesheet" type="text/css"/>
		
	</head>
	
	<body>
		
		<center>
			
			<div id="sbb_wrapper">
				
				<div id="sbb_headwrapper">
					
					<div id="sbb_bannerspace">
						
						<?php echo($sbb_fconfig->name);?>
						
					</div>
					
					<div id="sbb_loginspace">
						
						<span style="float:left;"><?php $sbb_module->mainNavigation(); ?></span>
						
						<span style="float:right;" class="sbb_loginform"><?php $sbb_module->loginModule(); ?></span>
						
					</div>
					
				</div>
				
				<div id="sbb_bodywrapper">
					
					<div id="sbb_forumspace">
						
						<?php
						
						$sbb_parser->getPage($_GET['act'], $_GET['id']);
						
						?>
						
					</div>
					
				</div>
				
			</div>
			
		</center>
		
	</body>
	
</html>